//
//  TripADCell.swift
//  ImGuider X
//
//  Created by 陆涛 on 2018/10/26.
//  Copyright © 2018 imguider. All rights reserved.
//

import UIKit

class TripADCell: UITableViewCell {

    
    @IBOutlet weak var adImageView: UIImageView!
    
    @IBOutlet weak var adTitleLabel: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        
        self.backgroundColor = kThemeBgColor
        self.selectionStyle = .none
    }

    var ad:TripAD? {
        
        didSet {
            
            adImageView.setImage(string: ad?.adPic, placeholder: UIImage(named:"placeholder_rec")!)
            adTitleLabel.text = ad?.adTitle
        }
    }
    
}
